package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface UserInfoRepository extends MongoRepository<UserInfo,String>{
    UserInfo findByPhone(String phone);

    List<UserInfo> findByCity(String keyword);

    //通过id集合查询用户集合
    List<UserInfo> findByIdIn(List ids);

}
